#ifndef __Math__SplashManager__
#define __Math__SplashManager__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "SplashConfig.h"


USING_NS_CC;

class SplashManager : public Layer
{
private:
    Size m_screenSize;

    void gotoDesignerLayer();
    void gotoCautionParentLayer();

    Node* loadingLayer;
    Node* designerLayer;
    Node* cautionParentLayer;
    void btnOKTouched(Ref* pSender);
    void initBackground();
public:
    float deltaTime;
    void initalize();
    static Scene* createScene();
    float kScale;
    virtual bool init();
    void update(float dt);
    CREATE_FUNC(SplashManager);
};

#endif /* defined(__Math__SplashManager__) */
